import styled from "styled-components";
import border from "@/components/styled/border"

const RecordsWrapper = styled.div`
    background-color: #ffffff;
    height: 100%;
    
    .change_msg{
        height: .3rem;
        margin: .05rem .2rem;
        background-color: #f2f2f2;
        border-radius: .075rem;
        display: flex;
        flex: 1;
        justify-content: space-between;
        align-items: center;
        padding: .02rem;
        
        .basic_msg,.health_msg{
            width: 1.65rem;
            height: .24rem;
            font-size: .12rem;
            color: #2984f8;
            text-align: center;
            background-color: #ffffff;
            border-radius: .1rem;
            line-height: .24rem;
        }
        .health_msg{
            color: #666666;
            background-color: #f2f2f2;

        }
    }

    .scroll_cont_msg{
        height: 5.7rem;
        overflow-y: scroll;

        .phone_user{
            height: 1.1rem;
            background-color: #f7fafd;
            display: flex;
            flex: 1;
            justify-content: center;
            align-items: center;
            
            div{
                height: .65rem;
                width: .65rem;
                border-radius: .65rem;
                position: relative;
                
                img{
                    width: 100%;
                    height: 100%;
                    border-radius: .65rem;
                }
                i{
                    position: absolute;
                    right: 0;
                    bottom: 0;
                }
            }
        }
    
        .user_msg,.detail_msg{
            border-bottom: .1rem solid #f7fafd;
        }
    }
`

const RecordsItremWrapper =
    styled.div`
        height: .4rem;
        display: flex;
        margin-left: .2rem;
        font-size: .12rem;
        align-items: center;
        border-bottom: 1px solid #ccc;

        span{
            min-width: .55rem;
            color: #999999;
        }
        div{
            margin-left: .35rem;
            margin-right: .2rem;
            color: #333333;
            flex: 1;
        }
        i{
            margin-right: .2rem;
        }
        .msg_tel{
            color: #2984f8;
        }
        .msg_title{
            color: #cccccc;
        }
        .msg_spac{
            margin-left: .2rem;
        }
        .msg_house{

            input{
                list-style: none;
                vertical-align: middle;
            }
            span{
                color: #333333;
                margin-right: .2rem;
                margin-left: .1rem;
            }
        }
    `

const RecordsSpecItremWrapper = border(
    styled.div`
        height: .8rem;
        display: flex;
        margin-left: .2rem;
        font-size: .12rem;
        align-items: center;

        span{
            min-width: .55rem;
            color: #999999;
        }
        div{
            margin-left: .35rem;
            margin-right: .2rem;
            color: #333333;
            flex: 1;
        }
        i{
            margin-right: .2rem;
        }
        .msg_house{
            input{
                vertical-align: middle;
            }
            span{
                color: #333333;
                margin-right: .2rem;
                margin-left: .1rem;
            }
        }
    `
)

export {
    RecordsWrapper,
    RecordsItremWrapper,
    RecordsSpecItremWrapper,
}